import http from "@/utils/request"

// 获取学生信息接口
export let getStudentData = (count = 8,page = 1,classess) => http.get('/students/getstulist',{
    params:{
        count,
        page,
        class:classess
    }
})


// 添加学生信息到数据库
export let addStu = data => http.post('/students/addstu',{...data})


// 编辑学员信息
export let editStu = data => http.post('/students/updatestu',{...data})


// 删除学员信息
export let delStu = sId => http.get('students/delstu',{
    params:{
        sId
    }
})

// 获取班级信息
export let classInfo = () => http.get('/students/getclasses')


// 搜索学生
export let searchStudent = (key,count,page) => http.get('/students/searchstu',{
    params:{
        key,
        count,
        page
    }
})